# import  sqlite3
#
#
# conn = sqlite3.connect('test.db')
# c = conn.cursor()
# # print('数据库打开')
# # 插入
# # c.execute("INSERT INTO FISH (ID,NAME,AGE,ADDRESS,SALARY) \
# #       VALUES (1, 'Paul', 32, 'California', 20000.00 )")
# #
# # c.execute("INSERT INTO FISH (ID,NAME,AGE,ADDRESS,SALARY) \
# #       VALUES (2, 'Allen', 25, 'Texas', 15000.00 )")
# #
# # c.execute("INSERT INTO FISH (ID,NAME,AGE,ADDRESS,SALARY) \
# #       VALUES (3, 'Teddy', 23, 'Norway', 20000.00 )")
# #
# # c.execute("INSERT INTO FISH (ID,NAME,AGE,ADDRESS,SALARY) \
# #       VALUES (4, 'Mark', 25, 'Rich-Mond ', 65000.00 )")
#
# # #查找
# # my = c.execute("SELECT * FROM FISH")
# #
# # for row in my:
# #     print "ID =",row[0]
# #     print "NAME =",row[1]
# #     print "ADDRESS =",row[2]
# #     print ""
#
# # my = c.execute('SELECT * FROM FISH')
# # print(my)
# # for row in my:
# #     print "ID = ", row[0]
# #     print "NAME = ", row[1]
# #     print "ADDRESS = ", row[2]
# #     print "SALARY = ", row[3], "\n"
#
#
#
# conn.commit()
# conn.close()